import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
	base: './',
	server: {
		host: '0.0.0.0',
		port: 9527,
		// proxy: {
		// 	'/video-list': {
		// 		target: 'http://192.168.110.16:8080',
		// 		changeOrigin: true,
		// 		// rewrite: (path) => path.replace(/^\/api/, '')
		// 	}
		// }
	},
	plugins: [
		vue(),
	],
	// 配置别名
	resolve: {
		alias: {
			'@': resolve(__dirname, './src'),
		}
	},
	css: {
		preprocessorOptions: {
			scss: {
				silenceDeprecations: ["legacy-js-api"],
			},
		},
	},
})
